#include "calc.h"
double number;
	double number2;
	double sum=0;
	char op = '+';
void addition(){
	if (op == '+'){
		sum=number+number2;
		cout<<sum;
	}
}
void subtraction(){
	if(op =='-'){
		sum=number-number2;
		cout<<sum;
	}
}
void multiplication(){
		if (op=='*'){
		sum=number*number2;
		cout<<sum;
	}
}
void division(){
		if (op=='/'){
		sum=number/number2;
		cout<<sum;
	}
}
void squaring(){
	if (op=='^'){
		sum=pow(number,number2);
		cout<<sum;
	}
}
void squareroot(){
		if(op=='~'){
		sum=sqrt(number);
		cout<<sum;
	}
}
int main(){
	cout<<"Please Enter A Number\n";
	while(true)
	{
	
	cin>>number;
	cin>>op;
	if (op == '~'){
		squareroot();
	}
	else{
	cin>>number2;
	addition();
	subtraction();
	multiplication();
	division();
	squaring();
	}
	cout<<"\n--------------------------------------------------------------------\n";
	}
	return 0;
}
calc::calc(void)
{
}


calc::~calc(void)
{
}
